# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=blueprint-compiler
pkgver=0.2.0
pkgrel=0
pkgdesc="Markup language for GTK user interfaces"
url="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler"
arch="noarch !riscv64 !s390x"
license="LGPL-3.0-or-later"
depends="
	gobject-introspection-dev
	gtk4.0
	python3
	py3-gobject3
	"
makedepends="meson"
checkdepends="gtk4.0-dev"
subpackages="$pkgname-dev"
source="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v$pkgver/blueprint-compiler-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d8acdc0f31005215e8945d6b330cce0903d06ad849258a2e2819529908ac864190b8b653ddf0ffd8ff36e4e958711c8a07269eb424ec32a3800faa29af8edb85  blueprint-compiler-v0.2.0.tar.gz
"
